set(BASELINE_DIR "${UVCDAT_GIT_TESTDATA_DIR}/baselines/vcsaddons")

cdat_add_test(vcs_addons_preview_2x2
  "${PYTHON_EXECUTABLE}"
  ${cdat_SOURCE_DIR}/testing/vcsaddons/test_vcsaddons_preview_2x2.py
  ${BASELINE_DIR}/test_vcsaddons_preview_2x2.png
)
cdat_add_test(vcs_addons_test_12_plot_one_leg_per_row
  "${PYTHON_EXECUTABLE}"
  ${cdat_SOURCE_DIR}/testing/vcsaddons/test_12_plot_one_leg_per_row.py
  ${BASELINE_DIR}/test_12_plot_one_leg_per_row.png
)
cdat_add_test(vcs_addons_test_12_plot_one_leg_per_row_right
  "${PYTHON_EXECUTABLE}"
  ${cdat_SOURCE_DIR}/testing/vcsaddons/test_12_plot_one_leg_per_row_right.py
  ${BASELINE_DIR}/test_12_plot_one_leg_per_row_right.png
)
cdat_add_test(vcs_addons_test_EzTemplate_12_plots_margins_thickness
  "${PYTHON_EXECUTABLE}"
  ${cdat_SOURCE_DIR}/testing/vcsaddons/test_EzTemplate_12_plots_margins_thickness.py
  ${BASELINE_DIR}/test_EzTemplate_12_plots_margins_thickness.png
)
cdat_add_test(vcs_addons_test_EzTemplate_12_plots_legd_direction
  "${PYTHON_EXECUTABLE}"
  ${cdat_SOURCE_DIR}/testing/vcsaddons/test_EzTemplate_12_plots_legd_direction.py
  ${BASELINE_DIR}/test_EzTemplate_12_plots_legd_direction.png
)
cdat_add_test(vcs_addons_test_EzTemplate_12_plots_mix_glb_local
  "${PYTHON_EXECUTABLE}"
  ${cdat_SOURCE_DIR}/testing/vcsaddons/test_EzTemplate_12_plots_mix_glb_local.py
  ${BASELINE_DIR}/test_EzTemplate_12_plots_mix_glb_local.png
)
cdat_add_test(vcs_addons_test_EzTemplate_12_plots_spacing
  "${PYTHON_EXECUTABLE}"
  ${cdat_SOURCE_DIR}/testing/vcsaddons/test_EzTemplate_12_plots_spacing.py
  ${BASELINE_DIR}/test_EzTemplate_12_plots_spacing.png
)
cdat_add_test(vcs_addons_test_histogram_defaults
  "${PYTHON_EXECUTABLE}"
  ${cdat_SOURCE_DIR}/testing/vcsaddons/test_vcs_addons_histogram_defaults.py
  ${BASELINE_DIR}/test_vcs_addons_histogram_defaults.png
)
cdat_add_test(vcs_addons_test_histogram_inherit
  "${PYTHON_EXECUTABLE}"
  ${cdat_SOURCE_DIR}/testing/vcsaddons/test_vcs_addons_histogram_inherit.py
  ${BASELINE_DIR}/test_vcs_addons_histogram_inherit.png
)
cdat_add_test(vcs_addons_test_polar
  "${PYTHON_EXECUTABLE}"
  ${cdat_SOURCE_DIR}/testing/vcsaddons/test_vcs_addons_polar.py
  ${BASELINE_DIR}/test_vcs_addons_polar.png
)
cdat_add_test(vcs_addons_test_polar_inherit
  "${PYTHON_EXECUTABLE}"
  ${cdat_SOURCE_DIR}/testing/vcsaddons/test_vcs_addons_polar_inherit.py
  ${BASELINE_DIR}/test_vcs_addons_polar_inherit.png
)
cdat_add_test(vcs_addons_test_convert_arrays
  "${PYTHON_EXECUTABLE}"
  ${cdat_SOURCE_DIR}/testing/vcsaddons/test_vcs_addons_convert_arrays.py
)
cdat_add_test(vcs_addons_test_polar_degrees
  "${PYTHON_EXECUTABLE}"
  ${cdat_SOURCE_DIR}/testing/vcsaddons/test_vcs_addons_polar_degrees.py
  ${BASELINE_DIR}/test_vcs_addons_polar_degrees.png
)
cdat_add_test(vcs_addons_test_polar_annual
  "${PYTHON_EXECUTABLE}"
  ${cdat_SOURCE_DIR}/testing/vcsaddons/test_vcs_addons_polar_annual.py
  ${BASELINE_DIR}/test_vcs_addons_polar_annual.png
)
cdat_add_test(vcs_addons_test_polar_diurnal
  "${PYTHON_EXECUTABLE}"
  ${cdat_SOURCE_DIR}/testing/vcsaddons/test_vcs_addons_polar_diurnal.py
  ${BASELINE_DIR}/test_vcs_addons_polar_diurnal.png
)
cdat_add_test(vcs_addons_test_polar_seasonal
  "${PYTHON_EXECUTABLE}"
  ${cdat_SOURCE_DIR}/testing/vcsaddons/test_vcs_addons_polar_seasonal.py
  ${BASELINE_DIR}/test_vcs_addons_polar_seasonal.png
)
cdat_add_test(vcs_addons_test_polar_semidiurnal
  "${PYTHON_EXECUTABLE}"
  ${cdat_SOURCE_DIR}/testing/vcsaddons/test_vcs_addons_polar_semidiurnal.py
  ${BASELINE_DIR}/test_vcs_addons_polar_semidiurnal.png
)

if (CDAT_DOWNLOAD_SAMPLE_DATA)
  cdat_add_test(vcs_addons_EzTemplate_2x2
    "${PYTHON_EXECUTABLE}"
    ${cdat_SOURCE_DIR}/testing/vcsaddons/test_vcs_addons_EzTemplate_2x2.py
    ${BASELINE_DIR}/test_vcs_addons_EzTemplate_2x2.png
  )
endif()
cdat_add_test(vcs_addons_test_pcoords
  "${PYTHON_EXECUTABLE}"
  ${cdat_SOURCE_DIR}/testing/vcsaddons/test_vcs_addons_pcoords.py
  ${BASELINE_DIR}/../../data/vcsaddons/pcoords.nc
  ${BASELINE_DIR}/testParallelCoordinates.png
)
